﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Data.Abstract;

namespace Data
{
    public class SimpleVisitante: BaseSimple
    {
     

        #region Procedimientos
        public SimpleVisitante(DataRow dr)
        {
            LoadByDataRow(dr);
        }
        public SimpleVisitante(){}

        #endregion
        #region Propiedades
        string _UserName;
        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
        string _Password;
        public string Password
        {
            get { return _Password; }
            set { _Password = value; }
        }

        string _FullName;
        public string FullName
        {
            get { return _FullName; }
            set { _FullName = value; }
        }
        DateTime _FechaIngreso;
        public DateTime FechaIngreso
        {
            get { return _FechaIngreso; }
            set { _FechaIngreso = value; }
        }
 
       
        #endregion
        #region Metodos
        public override void LoadByDataRow(System.Data.DataRow DataRow)
        {
            this.Id = (int)Convert.ToInt16(DataRow["Id"]);
            this.FechaIngreso = (DataRow["FechaIngreso"] is System.DBNull) ? new DateTime(2000, 01, 01) : (DateTime)DataRow["FechaIngreso"];
            this.UserName = (DataRow["UserName"] is System.DBNull) ? "" : (string)DataRow["UserName"];
            this.Password = (DataRow["Password"] is System.DBNull) ? "" : (string)DataRow["Password"];
            this.FullName = (DataRow["FullName"] is System.DBNull) ? "" : (string)DataRow["FullName"]; 
        }
        #endregion

    }
  
}
